Fix pasting.
Fix potential crash.