Fix finalization of Trans class.