Fix multiple HTML id tag bug