#50 Fixed the bug in SearchController