Fix publish not saving