Fix bunch of bugs in advanced search activity.