New automatic built-in STL repair