Fix a minor issue when updating the listview data.