Fixed error in transaction commit method