fixed graph stuff

fixed graph stuff