fix player state not being reset