Fixes a bug related to selectedTitles