fixed bug with close_player