Update CFG.cpp

fixed minor bug