Master cylinder puking fluid

I had the same problem with my scamp break fluid all over the master.What i did was cut a couple of shims the same size as the rubber seal on top of the master.I took the rubber seal out and put the sims in the cap then put the rubber seal back in the cap no more leaks.The cap was not tight enough on top of the master .Good luck