fix bug in osm-json data detection