Keep the master cylinder cap tight. If you leave it open it is ok. The problem is that there is moisture in the air and brake fluid loves to absorb moisture. And if your brake fluid absorbs a lot of moisture it will lower the boiling point of the brake fluid. And when the fluid boils is when the air bubble forms. So keep the cap tight.
Second what kind of brakes pads are you using now?