fix double output