fix stub generate issue in a clean repo.