Change ParseError to use Index class.