Fixed a bug regarding reading stream data.

Stream data was not being properly queried due to a bug in the query.