fixed issue with not printing tmax