fixed error in parsing dates field