Fixed bugs in search fragment