Fixed bug in .transform