Local Boundary Flattening Theorem