Fix in copytoresultsdir protocol