Only try to fetch if the repo is there.
Fixed typo/bug.