Fix dep graph in remove vertex