fix issue for duplicate user