moved get_fallback_languages out of the if statement