fixed texture loading if no texture.