fix quantizer