[Daedalus] Fixed some errors in the serialization