fixed transformation bug