fix issue with disabling screenshot.