Fix empty selection highlighting bug.