Avoid hanging when dismissing DenemoProjects that are created by scripts
Get priority of custom ornaments relative to text fixed, and the flat and sharps attached to them