Fix unscheduled maintenance deletion