Fixed #216: clean and order scheduled jobs