fixing html references