Fix issue when esc pressed (from search job)