fix closure errors in Format.OSM