fixed the issue with translating empty input