Fixes dupe bug. #309
Merge pull request #310 from yueh/fix-309

Fixes dupe bug. #309