bug fix: indexing issue in the read_tecrdb() function