fix transaction save; calculate transaction action[fast fix]