Fixing references in html version