Fix in scheduler serialization - broken it in previous fixes