fix time-scale from nano to milliseconds