Fixed the auto selection of first row.