fixed download bug where HTML file was not being updated