Fix persistent scheduler, it suffered from double deserialisation.