Fixing the print plugin on mac