fix #21120: Increasing rest value causes corruption