fixed pattern parsing error