correcting issue with printing a document