Fix of  'schedule test/issue#2268' crashes