Fixed problems with spurious input
Merge pull request #1 from hanikesn/master

Fixed problems with spurious input