Fixed bug with indexing of columns during read