Fixes a crash when the list view is clicked.