Fixed bug when no "href" attribute