Fix crash with listview