Fixed errors when a player gets hit.