fixed one bug for Timer