fix bug with clipping of backgrounds when zooming in