fix a.href delegate check