The reason the sce is saved is because it is needed in getMaxMinValue(). Your change would break that - the wrong scope is saved.