fix scaleGrid