Fixed bug when paste an URL with context menu