Fixed the bug capturing old screenshot.