Fixing bug in language lookup