fix double spwan, takeScreenshot calls run