fix integer object serialization