Correcting row output