Fix crash when adding new user.