Fix the error which appears in `kselection` when the number of rows in the input data is lower than 15.