avoid NumberFormatException
Merge pull request #153 from xuwei-k/number-format-exception

avoid NumberFormatException