Fix of odd scaling bug in transofmer