Fixed bug found in search controller

Fixed. Done