Bug fixes to scheduler models.