Correction to shared node logic

This fixes a bug introduced recently for core specialization logic