osm format working
 fix a bug on global variable in osmparser