Fix overflow in TextParam.