Do a tight node to avoid text overflow; bug fix to avoid adding a null
referenceEntity to a set