fixed empty input box crash