Fixing bugs in graph cascading