fixed sanitize bug