Fix selecting bug.