Fixing texture loading