Fixed bug in stream search window validation