Fixed a function name

Tested the serialization.