fix overflow in offscreen drawing