fixed texture loading issue