Fixed player deletion

I have fixed the issue with a player being deleted.