Fix floating point precision, get rid of cg override