fix to parsing dates