fixed issue with scaling the time axis