Fixed assertion bug causing dupe check to always return false