fix #4501: crash in IPF::ResetSearch