Fix the cgi script visualizer
Fix the Document ID counter