fix scheduling