fix pattern error