fixes #5131 Error in console copying host