Replace badly paths removal