fix ProceduralTexture bug