fixed language registry bug