bug fix: prevent negative n_windows

needed if number of observations is smaller than desired window size