fixed stream codec issues