Fix wrong indices