fix time setting