Fix old scripts