fixed texture loading