fixed time scale bug