added missing condition to fix private pubbing