Fix undefined variable `value`