video.php fixed some bugs