Patching the print dialog so that it opens as expected if the same model is opened twice in a row