Fixed J problem in CG