Issue #2: fixed publish flag