Fixed creation of the top level path when generating HTML.