Fix graph deformation on small window size