Fixes candidates function to pick right columns.