fixed validation of html files
 #211 fixed error when clicking link creator button multiple times