fixed a glitch with row selection and header lines