fix for issues generated from api cleanup commit
Merge pull request #370 from slarosa/osm_plugin_issue

fixes issues for OSM plugin generated from api cleanup commit