#2098: scanning for stream length when it's incorrect