diff --git a/src/Services/Sections.php b/src/Services/Sections.php
index <HASH>..<HASH> 100644
--- a/src/Services/Sections.php
+++ b/src/Services/Sections.php
@@ -186,7 +186,7 @@ class Sections extends Base
                 continue;
             }
 
-            $entryTypes = $section->getEntryTypes('handle');
+            $entryTypes = Craft::app()->sections->getEntryTypesBySectionId($section->id, 'handle');
 
             foreach ($sectionDefinition['entryTypes'] as $entryTypeHandle => $entryTypeDefinition) {
                 $entryType = array_key_exists($entryTypeHandle, $entryTypes)
Use craft sections getEntryTypesBySectionId to get entrytype