Fixed bug addSchedule with 0