Fix typo
Allow the number of iterations to be smaller than the window size