fixed crash in tender search