core: fix dot graph dump