Repaired error with stream encodings