fix texture loading