fixed bug in player creation