fixed template error for the list view