Fixed error in IStream class.