Change publish hook too