Fix bugs with default lang and cover default case