fix a problem creating empty <a></a> tags