fix time exception