Fixed errorscreenshot bug