fixed performSearch error bug