diff --git a/source/Lib/CommonLib/CodingStructure.cpp b/source/Lib/CommonLib/CodingStructure.cpp
index 2f98f8866f0065eea56015c2d72d0ebe58d01ec2..ef6effbaef89faedfbfcc829654dcd9297313500 100644
--- a/source/Lib/CommonLib/CodingStructure.cpp
+++ b/source/Lib/CommonLib/CodingStructure.cpp
@@ -2216,7 +2216,7 @@ void CodingStructure::rebindPicBufs()
   }
   if( pcv->isEncoder )
   {
-    if (!picture->M_BUFS(0, PIC_RESIDUAL).bufs.empty())
+    if (!picture->M_BUFS(0, PIC_ORG_RESI).bufs.empty())
     {
       m_orgr.create(area.chromaFormat, area.blocks[0], pcv->maxCUWidth);
     }