fix issue when repo has no tag