fix media repo setting