Fixed crashing issue when no repo is available