Fixed a bug where two object references pointed to the same object instead of separate objects.