IOStream correction