diff --git a/mule-migration-tool-library/src/main/java/com/mulesoft/tools/migration/library/apikit/steps/ApikitHttpListenerMapping.java b/mule-migration-tool-library/src/main/java/com/mulesoft/tools/migration/library/apikit/steps/ApikitHttpListenerMapping.java
index da324d8be..04d980239 100644
--- a/mule-migration-tool-library/src/main/java/com/mulesoft/tools/migration/library/apikit/steps/ApikitHttpListenerMapping.java
+++ b/mule-migration-tool-library/src/main/java/com/mulesoft/tools/migration/library/apikit/steps/ApikitHttpListenerMapping.java
@@ -100,7 +100,7 @@ private static Element getParentFlow(Element element) {
if ("flow".equalsIgnoreCase(parent.getName()))
return parent;
- return getParentFlow(element);
+ return getParentFlow(parent);
}
private static String getExpressionValue(String str) {
diff --git a/mule-migration-tool-tests/src/test/resources/e2e/apikit1/src/main/app/mule-config.xml b/mule-migration-tool-tests/src/test/resources/e2e/apikit1/src/main/app/mule-config.xml
index b50470e69..d64939074 100644
--- a/mule-migration-tool-tests/src/test/resources/e2e/apikit1/src/main/app/mule-config.xml
+++ b/mule-migration-tool-tests/src/test/resources/e2e/apikit1/src/main/app/mule-config.xml
@@ -7,6 +7,9 @@ http://www.springframework.org/schema/beans http://www.springframework.org/schem
+
+
+