Fixed segfault when removing a player's flag