Fix graph width sanity check