Fixed crashing when selecting items in ListView.