Made creation of missing settings more robust