Fixed a bug where an unnecessary node was not marked as extra.