Another case of premature use of sys.last_value.