fixed comment insert transaction logic