Fix fetching when input empty