fix set task directory