fix duplication bug