[fix] critical fix: check domain exists in config