Fix sliding window patch in example