Fixed a crash when removing a user.