Fixed little bug in date parsing