Fixed publishing setting on root and sample