broken A HREF insertion code