prevent search exception