fixes for publish label in template