fixed TypeError bug related to video urls