Fixed invalid repo removal