Fix a crashing issue introduced by adding setFriendlyName and getFriendlyName.