Correction of closed stream.