Fixes size restoration issues for rectangles and ellipses when loading a project.