Fixed text pasting issue - issue #4