The program work as it would copy the file. But the local file was not overwritten. So when I did not know the the file is already in the local drive I would think that it was properly copied. And work with an old state of the file not with the state I tried to copy.
I think that this is a bug. If I'm wrong please tell me what I must do to get the behaviour which I expected.