fix transaction issue