Fixed bug with cloning tasks