Fix result click event handler