Fixed dynamic texture loading bug