Fixed memory access bugs which occured if "root" has no sub nodes (benchmark system)