fixing user duplication bug