fix single number input and update invalid index bug
Merge branch 'master' of https://github.com/yjlo123/todo