Fixed error in search view.