fixed empty input.