fixed searching local bug