Fix generation of indexTimeWithDups without duplicates