Fix behaviour when DummyAttrs remain in query.