fixes #400
Merge branch 'bug/400-file-copy-error'