Fixing the debug copy tasks.