Need to fix problem in viewdata.py