fix get latest tag always not exists bug