fix repoDir being null