cleanup
fix hatch tolerance issue which leads to invalid hatches with many loops