Fix Chrome, IE error on paste.