Lint fix
checked number before parseInt
Merge pull request #2256 from Spiritlebon/master

lint fix