Fixes bug with registering player flags