Bugfix for wrong offset if object is cloned. Same bug as issue #416