fixed bad request bug on search