corrected issue with IStreamDecorator API.