Fixed unnessesary creation of identical transformations.