Corrected error that removed all rows in occs object when there were no duplicates