fix output when now rows to output