Work around for saving schedule. Will wait for swift compiler to be fixed