Fixes qc-func