* Fixed crash when publish directory is not writable