fix the bug in processing nodes with no outedged