fix digraph error