fixing bug if no href in link