nested transaction bug?
ok, this fixes the nested transaction