Fixed a bug in the ScreenshotInserter.