ugly hack to render floats right, but it works