baseview.py; bug fixing