fix pattern.