Merge pull request #9 from orginos/master

fixed input bug