diff --git a/xdebug.c b/xdebug.c
index c09dd30..9eb520c 100644
--- a/xdebug.c
+++ b/xdebug.c
@@ -1359,7 +1359,7 @@ static int check_soap_call(function_stack_entry *fse)
 	if (fse->function.class &&
 		(
 			(strstr(fse->function.class, "SoapClient") != NULL) ||
-			(strstr(fse->function.class, "SoapClient") != NULL)
+			(strstr(fse->function.class, "SoapServer") != NULL)
 		) &&
 		(zend_hash_find(&module_registry, "soap", 5, (void**) &tmp_mod_entry) == SUCCESS)
 	) {
