Pasting: Fixed undo
Fixes #50