Fix activity private flag assignment