fix match pattern