fixed search result visibility checks