fix tranformation bug