some bugfixes in the transformations