[OE-2131] fixed crash when rescheduling.
[OE-2131] fixed crash when rescheduling.

FiviumAustralia/OpenEyes,FiviumAustralia/OpenEyes,FiviumAustralia/OpenEyes,FiviumAustralia/OpenEyes,FiviumAustralia/OpenEyes