Solved bug at sliding_window