fixed a bug in computing time offset when reading tensor models - thanks for msperlich