Fix problem with publish confirmation dialog