fix for custom texture loading