fixed cookie language detection