fix issues with repeated objects