fix time parsing error