Fix template directive in list view