fixed issue with templating loading from task