fix #4080, don't try to deepcopy Tasks