Fix duplicated output