fixed texture loading when no directory is found