fix for empty input error when using first run