fix repeat and positioning