fix bugs with printing floats