Fixed overflow in printing path