fix stub generate issue in clean repo.