Bug fix in clicking the first element of search result