fix gh-366 duplicate output