rectify bug in display of listview