Fixed issue with copy and paste not working

I've patched this for the meantime but I'm not sure persisting the paste
on the client-side is the best place for this.