Bug fix: window jumps when pasting