fixing language bug

If only one language is installed, now is no error thrown