fix texture generator.