fix bug and update timerbase