Fixed crashing bug in Transform, though we have a tiny memory leak now.