fixes dupe bug