Fix publish corruption