fixes duplication bug when shift clicking items