Added fix for no selected repositories.