correction of catch error in date_pattern