implement scheduler template fix from pull request #162