fix bug in track reader