fix indention and timer_reset function
adopt to renaming from active_thread to sched_active_thread