small correction made get_preferred_lang