Fixed major bug when initializing the list view.