fixed dispel code for esgsearch