fixes some player's bugs