misc fixes to NcmlEditor