Corrected the updating of the listView