Fix language settings null pointer exception