fixed graphdepth bug