fix bug in previous commits, related to Serialization.
did not compile