Fixed bug where polygon parts weren't being treated properly.