Fix serialize objects.