Fixes publish script