core: fix password copying to clipboard