fixing the counting of packed nodes