Fixed a bug in object transformation.