fix careless errors in CG mimimizer