Fixes a shadowed variable

The variable `value` is shadowed and produces a warning if that type of warning is enabled.