Get rid of deprecation warning for variable usage

Fix the following warning:

Warning: Variable access via 'value' is deprecated. Use '@value' instead.