fix crash in settings inspector

inspector crash #428