fix time variable