fixes #5964 errors in console when copying host