bug fix (broke subset when removed tx from names(structure(bg)$trans))