fix calculation of column length for readline