fix timer milisecond to second conversion bug