Fixed graph bugs.