fix bug where index.html was not output
fix bug where index.html was not output as string