Kodi lost all settings after crash

Every time if Kodi is crashed, all settings are back to default after re-launching Kodi which is very annoying. Is there a way to prevent it from happening? The library isn’t affected, so maybe Kodi should do the same way for settings as library?