fixing skeletonizing