Fix graph display compilation bugs