fix layer export issue.
fix tsp(euclid) issues.