fixes segfault bug for systems with only a few nodes (block count shouldnt be zero ever)