Fixed unserializable object serialization