fix timer bug caused by incorrect seconds->milliseconds conversion