diff --git a/include/vkcv/Core.hpp b/include/vkcv/Core.hpp
index c4ef0f8b69f1be9c6d0a4b0823baad7c069d396a..93ab5d4cb9cd3574ded4b76d37fe44150a2ae1a0 100644
--- a/include/vkcv/Core.hpp
+++ b/include/vkcv/Core.hpp
@@ -100,7 +100,9 @@ namespace vkcv
             */
         template<typename T>
         Buffer<T> createBuffer(vkcv::BufferType bufferType,size_t size) {
-            return Buffer<T>(m_Context.getDevice(),m_Context.getPhysicalDevice(), bufferType,size);
+            Buffer<T> buffer(m_Context.getDevice(), m_Context.getPhysicalDevice(), bufferType, size);
+            return std::move(buffer);
+            //return std::move(Buffer<T>(m_Context.getDevice(),m_Context.getPhysicalDevice, bufferType,size));
         };
         PassHandle createRenderPass(const Renderpass &pass) ;
         PipelineHandle createPipeline(const Pipeline &pipeline);