fix to views.py