fix float serialization