Possible fix for crash on OS X Mavericks when adding duplicates