saveScreenshot fix