Fix div of 0.0 error and clean up comparison tags (no bug number).