Fix schedule serialization