OSM doesn't have a different elements for lines or areas. It's just assumed that certain closed ways with certain tag combinations are treated as areas.

It sounds like it'd be more reliable/durable if you'd look into figuring out what your code is doing wrong rather than having to edit OSM data, because this becomes borderline https://wiki.openstreetmap.org/wiki/Tagging_for_the_renderer