Fix issue with local task arguments being reused