fix time code