fix selection in update