Exactly the same problem I had... Looked it up and it's caused by the fluid boiling. 3 remedies are: Titanium shims behind the pads, Better brake fluid, braided lines.
Oh and to make matters worse, once it's boiled once, it's more likely to boil again