fix issue with task permissions