Fix scripts. Thanks to @pwalczysko