clean up todo.
Fix crash when clearing the pasteboard.