diff --git a/system/src/Grav/Framework/Flex/FlexIndex.php b/system/src/Grav/Framework/Flex/FlexIndex.php
index <HASH>..<HASH> 100644
--- a/system/src/Grav/Framework/Flex/FlexIndex.php
+++ b/system/src/Grav/Framework/Flex/FlexIndex.php
@@ -261,7 +261,7 @@ class FlexIndex extends ObjectIndex implements FlexCollectionInterface, FlexInde
 
         if (!empty($cachedMethods[$name])) {
             // TODO: We can optimize this by removing key field from the key and creating collection with proper key.
-            $key = $this->getType(true) . '.' . sha1($name . '.' . json_encode($arguments) . $this->getCacheKey(), $this->getKeyField());
+            $key = $this->getType(true) . '.' . sha1($name . '.' . json_encode($arguments) . $this->getCacheKey(). $this->getKeyField());
 
             $cache = $this->_flexDirectory->getCache('object');
Fixed a bug in flex index caching