fixed error when there is no video tag