Fixes advanced search bug for empty result