Fixed up publish logic.