Fixed duplicate output