duplicates bug fixed. Again.