Fixes issue #998.

Fixes multiple issues with the way PR #997 was implemented. 
@TShapinsky the default value was changed from `off` to `0`. 
Here it's a common mistake to use one of the `entries` array as default value instead of an element from the `entryValues` array.