fix time order