fix pattern builder logic derp & exploit