Fix ReferenceType visualization bug