bug fix for search controller