Corrected syntax error in publish