Fixed incorrect serialization function call