diff --git a/CHANGELOG.md b/CHANGELOG.md
index d8c470e..6b56540 100755
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,10 @@
+
+# [2.6.0](https://github.com/flextype-plugins/sitemap/compare/v2.5.0...v2.6.0) (2020-12-20)
+
+### Features
+
+* **core** update code base for new Flextype 0.9.13
+
# [2.5.0](https://github.com/flextype-plugins/sitemap/compare/v2.4.0...v2.5.0) (2020-12-07)
diff --git a/README.md b/README.md
index bfee680..cd6b73c 100755
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
Sitemap Plugin for Flextype
-
+
Sitemap plugin provide automatically generated XML sitemap for Flextype.
@@ -12,7 +12,7 @@ The following dependencies need to be downloaded and installed for Sitemap Plugi
| Item | Version | Download |
|---|---|---|
-| [flextype](https://github.com/flextype/flextype) | 0.9.12 | [download](https://github.com/flextype/flextype/releases) |
+| [flextype](https://github.com/flextype/flextype) | 0.9.13 | [download](https://github.com/flextype/flextype/releases) |
| [twig](https://github.com/flextype-plugins/twig) | >=1.0.0 | [download](https://github.com/flextype-plugins/twig/releases) |
## Installation
diff --git a/app/Controllers/SitemapController.php b/app/Controllers/SitemapController.php
index 9c33499..3b409ae 100644
--- a/app/Controllers/SitemapController.php
+++ b/app/Controllers/SitemapController.php
@@ -37,7 +37,7 @@ public function index(Request $request, Response $response) : Response
{
$sitemap = [];
- $entries = arrays(flextype('entries')->fetchCollection('', ['depth' => '>0']))->sortBy('modified_at', 'ASC')->all();
+ $entries = arrays(flextype('entries')->fetch('', ['collection' => true, 'depth' => '>0']))->sortBy('modified_at', 'ASC')->all();
foreach ($entries as $entry) {
diff --git a/plugin.yaml b/plugin.yaml
index 1a7c2ca..6410fed 100755
--- a/plugin.yaml
+++ b/plugin.yaml
@@ -1,5 +1,5 @@
name: Sitemap
-version: 2.5.0
+version: 2.6.0
description: Provide automatically generated XML sitemap.
author:
name: Sergey Romanenko
@@ -14,5 +14,5 @@ keywords: sitemap, plugin, xml, map, index
license: MIT
dependencies:
- flextype: 0.9.12
+ flextype: 0.9.13
twig: '>=1.0.0'