Fix max tracking bug in windowing example.