To prevent air bubbles in your buttercream, do not over beat it. Overbeating will incorporate more air and while this makes the buttercream light and fluffy, it will also cause the buttercream to have the unsightly air bubbles. When adding the sugar, beat only to the point the buttercream becomes creamy. You need to whip it until it is overly light and fluffy.