fix graphdefs