Bugfix for import in webapi