Fix error when adding 2 indexes