Fixed several bugs in the nominatim wrapper