fixed bug in termResources/views.py