duplication error fix