Fixed bug with player flags