bugfix: return empty array when search result is empty