:fix: bug while getting params from a task. Do a copy instead of getting the reference.