fix wrong if expression in link_tag