Fix setEditMode for composited shapes.