Fix duplicate 'root' directive errors