clearing the selected index

forget this one line