Fix bug in graph aggreg. reduce