repeat last input on empty input