Fixing pasting content bug