some fixes to graphs