Fixed three bugs that it sets to other value when the parameter is 0.
Merge pull request #2203 from dingpinglv/develop

Fixed three bugs that it sets to other value when the parameter is 0.