Fixed CG error