Texture loading fix