Fix flags in InputStreamDecorator.copy