Fix qcm problem