Fix invalid copy to clipboard command