Fix issue with restoring serializer from saved state