Fixes bug where player flags are not properly changed