fix bug with add empty input