Make sure the cheese is evenly distributed and not too close to the edges. Pressing the sandwich gently before grilling can help seal the edges.