Master Cylinder Leaking

If the brakes aren't bled correctly, any air trapped in either system, will act as a spring, and can violently squirt fluid back into the reservoir whenever the brake pedal is released, surpassing the lids ability to contain it. Lousy pedal may also indicate more bleeding is nec. cheers