Fix quantification bug