Fix in counting packed nodes