fix error output on publish button