Fixed inflating wrong menu for previewing when adding link.