Fix bug in cotransfrom helper.