Fix errors in stream types