fix clear and copy tasks