added controlled mode numerical validation (restore previous value)