Fixes a shadowed variable

The variable `value` is shadowed and produces a warning if that type of warning is enabled.
Merge pull request #1 from NatWeiss/patch-1

Fixes a shadowed variable