Fix paste bug on IE