fixed exception screenshot creation