Fix compile error with Serializer method signature