Fixed some problems in Transform.