Fix #16010 change variable

Fix #16010
Change variable in check. This fix for Issue 15556 where deleted variable $c_private