fixed bug in player