diff --git a/components/rgbd-sources/src/rgbd_source.cpp b/components/rgbd-sources/src/rgbd_source.cpp
index 9a8d1c08bd2719f3662f7a10ced13931f2c519c8..83ded9fcd1972ba09fe55304eb93a99561d599c5 100644
--- a/components/rgbd-sources/src/rgbd_source.cpp
+++ b/components/rgbd-sources/src/rgbd_source.cpp
@@ -54,7 +54,7 @@ bool RGBDSource::snapshot(const std::string &fileprefix) {
 
 RGBDSource *RGBDSource::create(nlohmann::json &config, ftl::net::Universe *net) {
 	auto &cfg = ftl::config::resolve(config);
-	if (cfg["type"].type_name() != "string") {
+	if (!cfg["type"].is_string()) {
 		LOG(ERROR) << "Missing RGB-D source type: " << cfg["type"].type_name();
 		//return nullptr;
 	}