fixed error when clicking outside of a link on the output panel