fixed copy to clipboard issue