Fixed conversion to qclassgen