fixed problem with inserting needless identity transforms