fixed frame search bug in views.py