Fix possible dupe bug.