fix publish attribute