Fix jumping of shapes when resizing
The jumping happened because there was an extra update for the undone state when resizing the shape.