Fix bug with rasterize multiple polygons