fixes to some tranformation errors