diff --git a/source/Lib/CommonLib/Slice.cpp b/source/Lib/CommonLib/Slice.cpp
index 5e1a924773a4c5801ce86c9c1567bb566f761346..d37675fc9d947c37e161da9a42038f3740b91738 100644
--- a/source/Lib/CommonLib/Slice.cpp
+++ b/source/Lib/CommonLib/Slice.cpp
@@ -618,7 +618,7 @@ void Slice::checkCRA(const ReferencePictureList* pRPL0, const ReferencePictureLi
       {
         int pocBits = getSPS()->getBitsForPOC();
         int pocMask = (1 << pocBits) - 1;
-        int ltrpPoc = m_pRPL1->getRefPicIdentifier(i) & pocMask;
+        int ltrpPoc = pRPL1->getRefPicIdentifier(i) & pocMask;
         if(pRPL1->getDeltaPocMSBPresentFlag(i))
         {
           ltrpPoc += getPOC() - pRPL1->getDeltaPocMSBCycleLT(i) * (pocMask + 1) - (getPOC() & pocMask);