Fixed new serializer

Should also fix database corruption bug.