fix bug with resolve dupes