Correction on date parsing