Fix date parsing error