fixed bug with search controller