fix time exception issue