Fixes to patterns in LocalCompiler