fixed bug in automatic deletion of player