Fixed imlementation of Abstract stream codec #95