fix reselection on caret selections