publish: fixed syntax errors and build

generated from commit 57eccf7ab25bdf76b0827079d32d95bfe9c13d70