fixed some graph issues