fix vTimerCallback function