Fix a bug where the pages where getting generated with .htm extension