fix timer bug when config changed