Fixed: scope issue was causing a fatal error when a search had result