fixed bug when player was destoryed