Fix root element editing