Fixed bug in parsing of index records