Fixed bugs with timeScale.