Fixed a bug which the user can draw the grid without writing all the
measures in the shape.