Fixed extra-column bug when --flat-output isn't specified