Corrected a bug in the index_view template