Fixed bug where quaternion objects were being updated rather than copied