Fix problem with sanitizeOptions