Fixed error in parsing when processing indexes