fix cb not called on pattern mismatch