Fix for directly loading xml editor.