Fix unschedulePublish