fix crash on language manager