diff --git a/hoot-core/src/main/cpp/hoot/core/io/OsmApiDb.cpp b/hoot-core/src/main/cpp/hoot/core/io/OsmApiDb.cpp
index 18d2d6f..f5f9165 100644
--- a/hoot-core/src/main/cpp/hoot/core/io/OsmApiDb.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/io/OsmApiDb.cpp
@@ -158,7 +158,7 @@ bool OsmApiDb::isSupported(const QUrl& url)
bool valid = ApiDb::isSupported(url);
//postgresql is deprecated but still supported
- if (url.scheme() != "osmapidb" && url.scheme() != "postgresql")
+ if (url.scheme() != MetadataTags::OsmApiDbScheme() && url.scheme() != "postgresql")
{
valid = false;
}