fixing the sanitize option on _trees