Fix indefinite idle bug when using Timer events