Fixed minor bug in TransformingTextEntity.