Fix an error when creating new settings