fix some bugs in tv app