fixed a bug that did not allow the value `0` to be saved
Merge pull request #260 from will123195/3.0

fixed a bug that did not allow the value `0` to be saved