fix bookmarklet bug with duplicate id selector