fixed unpopulated listview
fixed crash in test code