fixed 'append = false' with outputstream