Fixing some problems with analyzing stream sessions