fix time issue