fix error in parser date