fix repo add magic manager