Fixed indexed rep bug