Fixed bug in transform.js