Fix rule method compilation.