fixes an issue with repeats