Fixed bug in object transformation.