FIX to properly throw an error when a language is not defined