fixed error for publishing