Fixed max_quant and scale_by_max_quant methods