fix integer overflow in dequant