Writing result to osm file but relations are not filtered