Fixed node counter to correct value