fix pattern mismatch