Fixed a duplication bug