fix nodup bug