bug fix with URL pasting