fixed bug where the wrong data columns were selected for analysis