fix for the dupe bug