fix quantization error