fixed texture loading bug