fix sanitize config