fixed a duplication bug