P.isObject returns true for arrays, causing deepMerge to spread arrays into plain objects with numeric keys and recursively merge entries. This corrupted customModels arrays in ServerSettings whenever updateSettings was called. Add Array.isArray guards at both the top-level check and the per-key recursive branch so arrays are replaced wholesale instead of merged.