fix scheduling buf