bugfix for empty input