publish: fix callbacks

generated from commit 83e02d3b9a2ecfaed2825133e99866828a60b41c