fixed the issue with schedule