Fixing rewiring of textures