Fix sweep selection on row header cause infinite loop issue