Fixed a bug with the elimination of newly created objects.