Fix graph resize