Publish button does not work