Fixed the effective node calculation