Hey, it is me again! :) Found another "bug". When running the tool, and deleting the history afterwards, everything is fine. But when running that tool, making a copy of that mesh (shift+d), and delete the history on that copied mesh, i cant add a material on that copied mesh.