Fixed texture loading issues