fix the column index issue