bugfix in tv.py