Fixed no repository selected bug