Cosmetic fixes to the repeat directive