fix hanging search when parser crashes