fixer minor bug in transform