fix bug periodic_timer not initialized