Fixed generation of new user ID when no users.