fixed transaction commit