bug fixes of element <portal-properties> and <language-properties>