Fixed publication script