fix bug with sanitize script