Fixes margins in wells