Fixed li and a tags generated