fix bug for no contif generated