some bug fixes to the precision changes