Fix error due to namespace in error detection for search results