Fixed issue with language being set to an array