Fixed bug that was causing player's dead.