---
title: "How to fix crashes caused by missing icon configuration?"
canonical: "https://help.fieldbuddy.com/space/FBDOCS/6809878536/How%20to%20fix%20crashes%20caused%20by%20missing%20icon%20configuration%3F"
format: markdown
---
In FieldBuddy Swift versions 3.510.3-3.510.4, you may encounter crashes caused by missing icon configuration when you navigate to certain screens.

On the error screen, when you press “show details”, you will see the following error:

`Cannot read property 'replace' of undefined`

This has been addressed in version 3.510.4-3.510.5, so we recommend you to upgrade to the new version via the app stores as soon as possible.

---

If the update is not available for you, here are the steps to fix this error manually via user configuration:

1. Search for the text `"type": "FProperties"`
2. In the objects that match, look for the `sections` field. You will see an array with multiple objects.
3. Look for the objects that do not have `headless` property, or have it set to `false`.
4. Add the following properties to these objects, if they are missing:

```json
"iconName": "md-briefcase",
"iosIconName": "ios-briefcase",
```

5. Save the config and schedule a hard reset for the affected users.

# Example

Configs that could cause a crash:

```json
{
   "headless": false,
   "mapping": "FIELDBUDDY__Product__c",
   "objects": [
     {
       "name": "Name"
     },
     {
       "name": "FIELDBUDDY__Product_Type__c"
     }
   ],
   "table": "FIELDBUDDY__Product__c",
   "title": "${FIELDBUDDY__Product__c.label}"
}
```

```json
{
   "mapping": "FIELDBUDDY__Product__c",
   "objects": [
     {
       "name": "Name"
     },
     {
       "name": "FIELDBUDDY__Product_Type__c"
     }
   ],
   "table": "FIELDBUDDY__Product__c",
   "title": "${FIELDBUDDY__Product__c.label}"
}
```

Fix:

```json
{
  "headless": false,
  "iconName": "md-megaphone", // <- Icon configuration added
  "iosIconName": "ios-megaphone", // <- Icon configuration added
  "mapping": "FIELDBUDDY__Product__c",
  "objects": [
    {
     "name": "Name"
    },
    {
     "name": "FIELDBUDDY__Product_Type__c"
    }
  ],
  "table": "FIELDBUDDY__Product__c",
  "title": "${FIELDBUDDY__Product__c.label}"
}
```