fix pattern compiler