Slightly optimize performance of updateSelection