Fixed a bug with Timer.