Bug fixed: sliding window size was ignored.