bugfix by didier2020 (https://github.com/metaodi/osmapi/issues/10), not line 516 yet