Avoid illegal access error, fix if html was given instead of link