Fix manage_repo type