Take all of the contours, combine them, then select your shape tool (F10), draw a box around the shapes you want to fix, then select the "close curve" button from your top toolbar. Then if you need to, you can just break apart the combined shape.
I'm not sure if that is what you are looking for?