fixed local downgrade error
fixed wrong named variable
fixed py3 error thrown by search command