Fix bug with new lines on copy/paste