fix bug on the main page w/ not properly working input

https://github.com/sergey-alekseev/cr-search/commit/5e97083ac07b680cce10
fa94e6cb4f3f740d075e#diff-20f1044b9dfbe05b1d1e2bddd9924f82R18