Fix for texture loading by Boris