fix transaction api