fixed error with stream reading