Removed line that would cause the program to open the document twice