fixed some problems rendering the bubble