fix createUser issue that wrongly report duplicate user ID.