fix Issue #3

I cannot reproduce the bug on setting a value, so the bug may need to
be re-opened