Fix variable asignment in search results