Fix: Bug with rule matching