fixed issue #3 (https://code.google.com/p/numberfield/issues/detail?id=3)