Fixed a bug with timeScale