Fix repeat type