Fixed an index mispelling bug