Graph reference bug