Bugfix to search action