fix transaction for search