Straining the custard mixture before pouring it into the ramekins can help eliminate air bubbles. Additionally, gently tapping the ramekins on a countertop can help release any trapped bubbles.