Glad it worked. That's the same thing that happened to me.
I kicked myself for not thinking of it sooner. I spent weeks hunting down air only to replace the MC more out of exasperation than anything else. The first test drive was a night and day difference - the brakes bit like they're supposed to.