fixed indexing problem with datareader