fixed wrong serialize function name