Fixed input and output stream

It needs to be called on context.