fixing private flag