fixed an issue with the date parser