Onion repository fixes