Fix reference to undefined variable.

link was actually result["link"]