fix for date pattern