fix jobscheduler