fixed resetTransform bug